package wikitools.model;

import java.util.ArrayList;

import wikitools.util.StringUtil;

public class ModelUtil {
	public static Article SAMPLEARTICLE = new Article("1", "My Fist Article", "zhaop",
					"Silence! I kill You!");
	
	public static ArrayList<Article> generateArticles(int size){
	    ArrayList<Article> xs = new ArrayList<Article>();
	   
	    for(int i=0; i<size; i++) {
	        String id = Integer.toString(i);
	        String title ="title<"+id+">";
	        String content = "content<" + id +">\n" + StringUtil.repeat(100, "BlahBlahBlah... ");
	        String author = "anonimous";
	        Article x = new Article(id, title, author, content );
	        xs.add(x);
	    }
	    return xs;
	}
}
